package com.fcscs.cservice.domain;

import java.math.BigDecimal;

import com.fcscs.core.domain.HistoricalEntity;
import com.fcscs.cservice.common.CServiceCommonEnums.ChargeBy;

public class InRoomOrderItemCharge extends HistoricalEntity {

	private static final long serialVersionUID = 1L;

	private long orderItemId;
	private BigDecimal amount;
	private long chargeTypeId;
	private long transactionTypeId;
	private String chargeTypeCode;
	private String transactionTypeCode;
	private Boolean isServiceChargeType;
	private String chargeTypeName;
	private String chargeTypeNameSecLang;
	private String chargeTypeNameThdLang;
	private Boolean isRevenueTransaction;
	private String transactionTypeName;
	private String transactionTypeNameSecLang;
	private String transactionTypeNameThdLang;
	private ChargeBy chargeByTypeEnum;
	private BigDecimal chargeValue;
	private String perType;

	@Override
	public DBLoc getDBLoc() {
		return DBLoc.GUEST;
	}

	public long getOrderItemId() {
		return orderItemId;
	}

	public void setOrderItemId(long orderItemId) {
		this.orderItemId = orderItemId;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public long getChargeTypeId() {
		return chargeTypeId;
	}

	public void setChargeTypeId(long chargeTypeId) {
		this.chargeTypeId = chargeTypeId;
	}

	public long getTransactionTypeId() {
		return transactionTypeId;
	}

	public void setTransactionTypeId(long transactionTypeId) {
		this.transactionTypeId = transactionTypeId;
	}

	public String getChargeTypeCode() {
		return chargeTypeCode;
	}

	public void setChargeTypeCode(String chargeTypeCode) {
		this.chargeTypeCode = chargeTypeCode;
	}

	public String getTransactionTypeCode() {
		return transactionTypeCode;
	}

	public void setTransactionTypeCode(String transactionTypeCode) {
		this.transactionTypeCode = transactionTypeCode;
	}

	public Boolean getIsServiceChargeType() {
		return isServiceChargeType;
	}

	public void setIsServiceChargeType(Boolean isServiceChargeType) {
		this.isServiceChargeType = isServiceChargeType;
	}

	public String getChargeTypeName() {
		return chargeTypeName;
	}

	public void setChargeTypeName(String chargeTypeName) {
		this.chargeTypeName = chargeTypeName;
	}

	public String getChargeTypeNameSecLang() {
		return chargeTypeNameSecLang;
	}

	public void setChargeTypeNameSecLang(String chargeTypeNameSecLang) {
		this.chargeTypeNameSecLang = chargeTypeNameSecLang;
	}

	public String getChargeTypeNameThdLang() {
		return chargeTypeNameThdLang;
	}

	public void setChargeTypeNameThdLang(String chargeTypeNameThdLang) {
		this.chargeTypeNameThdLang = chargeTypeNameThdLang;
	}

	public Boolean getIsRevenueTransaction() {
		return isRevenueTransaction;
	}

	public void setIsRevenueTransaction(Boolean isRevenueTransaction) {
		this.isRevenueTransaction = isRevenueTransaction;
	}

	public String getTransactionTypeName() {
		return transactionTypeName;
	}

	public void setTransactionTypeName(String transactionTypeName) {
		this.transactionTypeName = transactionTypeName;
	}

	public String getTransactionTypeNameSecLang() {
		return transactionTypeNameSecLang;
	}

	public void setTransactionTypeNameSecLang(String transactionTypeNameSecLang) {
		this.transactionTypeNameSecLang = transactionTypeNameSecLang;
	}

	public String getTransactionTypeNameThdLang() {
		return transactionTypeNameThdLang;
	}

	public void setTransactionTypeNameThdLang(String transactionTypeNameThdLang) {
		this.transactionTypeNameThdLang = transactionTypeNameThdLang;
	}

	public String getChargeByType() {
		return this.chargeByTypeEnum == null ? null : this.chargeByTypeEnum.toString();
	}

	public void setChargeByType(String chargeByTyp) {
		this.chargeByTypeEnum = (chargeByTyp == null || "".equals(chargeByTyp.trim())) ? null : ChargeBy
				.valueOf(chargeByTyp);
	}

	public ChargeBy getChargeByTypeEnum() {
		return chargeByTypeEnum;
	}

	public void setChargeByTypeEnum(ChargeBy chargeByTyp) {
		this.chargeByTypeEnum = chargeByTyp;
	}

	public BigDecimal getChargeValue() {
		return chargeValue;
	}

	public void setChargeValue(BigDecimal chargeValue) {
		this.chargeValue = chargeValue;
	}

	public String getPerType() {
		return perType;
	}

	public void setPerType(String perType) {
		this.perType = perType;
	}
}
